package com.freework.util.excel.read.vo;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.freework.util.excel.read.service.rowToObject.ValueFormatFactory;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "sheet")
@XmlType(name = "", propOrder = {
    "cols"
})
public class SheetVO {
	 @XmlAttribute()
	private int sheetnum=0;
	 @XmlAttribute(required=true)
	private int startrow=0;
	 @XmlAttribute()
	private	int endrow=-1;
	 
	private List<ColVO> cols=null;
	@XmlJavaTypeAdapter(ValueFormatFactoryXmlAdapter.class)
	@XmlAttribute(name="valueFormatFactory")
	private ValueFormatFactory valueFormatFactory=null;
	
	public int getStartrow() {
		return startrow;
	}
	public void setStartrow(int startrow) {
		this.startrow = startrow;
	}
	public int getEndrow() {
		return endrow;
	}
	public void setEndrow(int endrow) {
		this.endrow = endrow;
	}
	public List<ColVO> getCols() {
		return cols;
	}
	public void setCols(List<ColVO> cols) {
		this.cols = cols;
	}
	public int getSheetnum() {
		return sheetnum;
	}
	public void setSheetnum(int sheetnum) {
		this.sheetnum = sheetnum;
	}
	public ValueFormatFactory getValueFormatFactory() {
		return valueFormatFactory;
	}
	public void setValueFormatFactory(ValueFormatFactory valueFormatFactory) {
		this.valueFormatFactory = valueFormatFactory;
	}
	
	
	
	
}
